<template>
  <div id="main-tab-bar">
   <router-view></router-view>
      <tab-bar>
      <tab-bar-item path="/home" activeColor="pink">
          <slot slot="slot-icon"><img src="@/assets/img/tabbar/home.svg" alt=""></slot>
          <slot slot="slot-icon-active"><img src="@/assets/img/tabbar/home_active.svg" alt=""></slot>
          <slot slot="slot-text">首页</slot>
        </tab-bar-item>
        <tab-bar-item path="/category" activeColor="pink">
          <slot slot="slot-icon"><img src="@/assets/img/tabbar/category.svg" alt=""></slot>
          <slot slot="slot-icon-active"><img src="@/assets/img/tabbar/category_active.svg" alt=""></slot>
          <slot slot="slot-text">分类</slot>
        </tab-bar-item>
        <tab-bar-item path="/cart" activeColor="pink">
          <slot slot="slot-icon"><img src="@/assets/img/tabbar/shopcart.svg" alt=""></slot>
          <slot slot="slot-icon-active"><img src="@/assets/img/tabbar/shopcart_active.svg" alt=""></slot>

          <slot slot="slot-text">购物车</slot>
        </tab-bar-item>
        <tab-bar-item path="/profile" activeColor="pink">
          <slot slot="slot-icon"><img src="@/assets/img/tabbar/profile.svg" alt=""></slot>
          <slot slot="slot-icon-active"><img src="@/assets/img/tabbar/profile_active.svg" alt=""></slot>

          <slot slot="slot-text">我的</slot>
        </tab-bar-item>
      </tab-bar>
  </div>
</template>
<script>
import TabBar from '@/components/common/tabbar/TabBar'
import TabBarItem from'@/components/common/tabbar/TabBarItem'
export default {
  name:'MainTabBar',
  components:{
    TabBar,
    TabBarItem
  }
}
</script>
<style>

</style>
